<?php

class promo_model extends CI_Model {
	
	function getAll() {
		$query = $this->db->get('location');
		
		if ($query->num_rows() > 0) {
			foreach($query->result() as $row) {
				$data[] = $row;
			}
		return $data;
		}
	}	
}